class Config:
    HOST = "0.0.0.0"
    DEBUG = True
    SECRET_KEY = "0b32aef474ed687fabff1750157f2795f30de58dc503b6ce"
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:123456@localhost:3306"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    MONGO_URI = "mongodb://localhost:27017/AeroSentinel"
    
    SQLALCHEMY_POOL_SIZE = 10  # 连接池大小
    SQLALCHEMY_MAX_OVERFLOW = 5  # 最大溢出连接数
    SQLALCHEMY_POOL_RECYCLE = 3600  # 连接回收时间(秒)
    # CACHE_TYPE = "redis"
    JWT_SECRET_KEY = b"K!zW0qLiyh(ErH+NY:\t,^.n/\n2#jGZd&"
    JWT_EXPIRES = 300
    JWT_REFRESH_TIMES = 3
    TICKET_EXPIRES = 30

    STAT_COUNTER = 10
    # JWT_RENEWS = 300

    WX_APP_ID = "wx3979fbec808a82ee"
    WX_APP_SECRET = "8a16d977c3ab3491a89393b4219bd1fe"

    DEVICES = {
        "CQUCHX0503001": "lAJIOxHiUyp2GuoN",
        "CQUCHX0503002": "oIzUqhuNgFJMOkCL",
        "CQUCHX0503003": "0piWBoxFYNyOKECX",
        "CQUCHX0503004": "tlqbV10QkEOo5yAc",
        "CQUCHX0503005": "xJZ4oclUgQWHs0FB",
        "CQUCHX0503006": "smEtIJoej1NFbCwU",
        "CQUCHX0503007": "FaSP6l8OKMysXuTe",
        "CQUCHX0503008": "ZbOfMLvqjxA4GsBH",
        "CQUCHX0503009": "DY1loibvZjwW4xyq",
        "CQUCHX0503010": "caMrEAgOV3XL2z7I",
    }
